package cumeo89.chii.client.entry.renderer;

import static cumeo89.chii.client.entry.Constants.*;
import cumeo89.chii.client.util.MyArrays;

public class ItemLanguageRenderer extends TextRenderer {

	public ItemLanguageRenderer() {
		super("item-lang");
	}
	
	@Override
	protected String format(String value) {
		String name = MyArrays.translate(value, getLanguageCodes(),
				getLanguageNames());
		return name == null ? "&lt;không&nbsp;rõ&gt;" : name;
	}

}
